package com.yunxin.admin.system.domain.model.user;

import com.yunxin.admin.system.infra.persistence.entity.SysUserMerchantDO;

import java.util.List;

/**
 * @author zero°
 * @since 2023-07-11
 */
public interface UserMerchantRepository {

    /**
     * 保存用户商户
     *
     * @param userId userId
     * @param merchantIds merchantIds
     * @return boolean
     */
    boolean saveUserMerchant(Long userId, List<Long> merchantIds);

    /**
     * 获取用户商户id集合
     * @param userId userId
     * @return 用户商户id集合
     */
    List<Long> getUserMerchantIds(Long userId);

    Long selectMerchantIdByUserId(Long userId);

}
